package BitWise;

public class and {
    /*
     * 与运算符
     *   &
     *   逻辑: 将二进制数按位比较 都为1 结果该位为1
     * */
    public static void main(String[] args) {
        int a = 3; // 0011
        int b = 5; // 0101
        int c = a & b;//0001 输出1
        System.out.println("c = " + c);// c = 1
    }
}
